package com.laowang.project.system.service;

import java.util.List;

import com.laowang.project.system.domain.TbReceiveAddress;

/**
 * 收件地址Service接口
 *
 * @author laowang
 * @date 2022-12-21
 */
public interface TbReceiveAddressService {
    /**
     * 查询收件地址
     *
     * @param id 收件地址ID
     * @return 收件地址
     */
     TbReceiveAddress selectTbReceiveAddressById(Long id);

    /**
     * 查询收件地址列表
     *
     * @param tbReceiveAddress 收件地址
     * @return 收件地址集合
     */
    List<TbReceiveAddress> selectTbReceiveAddressList(TbReceiveAddress tbReceiveAddress);

    /**
     * 新增收件地址
     *
     * @param tbReceiveAddress 收件地址
     * @return 结果
     */
    int insertTbReceiveAddress(TbReceiveAddress tbReceiveAddress);

    /**
     * 修改收件地址
     *
     * @param tbReceiveAddress 收件地址
     * @return 结果
     */
    int updateTbReceiveAddress(TbReceiveAddress tbReceiveAddress);

    /**
     * 批量删除收件地址
     *
     * @param ids 需要删除的收件地址ID
     * @return 结果
     */
    int deleteTbReceiveAddressByIds(Long[] ids);

    /**
     * 删除收件地址信息
     *
     * @param id 收件地址ID
     * @return 结果
     */
    int deleteTbReceiveAddressById(Long id);
}
